package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**车辆运行模型
 * Created by Ellis.Li on 2017/5/12.
 */
public class OrderTotalInfo extends BaseModel<OrderTotalInfo> {

    /** 计算code*/
    public String order_total_code;
    /** 分项名称*/
    public String order_total_name;
    /** 分项金额*/
    public String order_total_amount;
    /** 分项金额格式化(10.00元)*/
    public String order_total_amount_format;
    /** 车辆订单备注颜色(0-黑色/1-红色/2-灰色)*/
    public String order_total_style_color;

    @Override
    public OrderTotalInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            order_total_code = jsonObject.optString("order_total_code");
            order_total_name = jsonObject.optString("order_total_name");
            order_total_amount = jsonObject.optString("order_total_amount");
            order_total_amount_format = jsonObject.optString("order_total_amount_format");
            order_total_style_color = jsonObject.optString("order_total_style_color");
            return this;
        }
        return null;
    }
}
